#ifndef __PWMI_H
#define __PWMI_H

#include "stm32f10x.h"

#define PWMI_GPIO_PORT            GPIOA
#define PWMI_GPIO_PIN             GPIO_Pin_6
#define PWMI_GPIO_CLK             RCC_APB2Periph_GPIOA

#define PWMI_TIM                  TIM3
#define PWMI_TIM_CLK              RCC_APB1Periph_TIM3
#define PWMI_TIM_CHANNEL          TIM_Channel_1
#define PWMI_TIM_INPUT_TRIGGER    TIM_TS_TI1FP1

void PWMI_Init(void);
uint32_t PWMI_GetFreq(void);
uint32_t PWMI_GetDuty(void);

#endif // !__PWMI_H